package com.chengweiyi.security;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

/**
 * @Author xiao hu die
 * @Date 2022/5/7 22:17
 * @Version 1.0
 */
@SpringBootApplication
@MapperScan("com.chengweiyi.security.mapper")
/**开启权限security注解开关*/
@EnableGlobalMethodSecurity(securedEnabled = true,prePostEnabled = true)
public class SecurityApplication {
    public static void main(String[] args) {
        SpringApplication.run(SecurityApplication.class,args);
    }
}
